
package gui;



import gui.GUIstart;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
import javax.swing.JLabel;

import game.Spiel.*;
import game.Farbkarte.*;
import game.*;



/**
 *
 * @author Sebastian Salvisberg
 */

public class GUImain extends javax.swing.JFrame {

    JButton[][] buttons;
    JLabel[][] labels;
    game.Spieler Spieler[];
    game.Reihe Reihe[];
    game.Spiel Spiel;
    

    
    /**
     * Erstellt GUI
     */
    public GUImain() {
        initComponents();
        
        buttons = new JButton[4][3];        
        assignButtons();
        
        labels = new JLabel[4][9];
        assignLabels();
        
        
  
    }

    /**
     * 
     *
     */
    
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPContent = new javax.swing.JPanel();
        jPanelOM1 = new javax.swing.JPanel();
        jLSpieler1 = new javax.swing.JLabel();
        jLName1 = new javax.swing.JLabel();
        jLPunkte1 = new javax.swing.JLabel();
        jLPunktestand1 = new javax.swing.JLabel();
        jBOrange1 = new javax.swing.JButton();
        jBBraun1 = new javax.swing.JButton();
        jBGruen1 = new javax.swing.JButton();
        jBGelb1 = new javax.swing.JButton();
        jBBlau1 = new javax.swing.JButton();
        jBRosa1 = new javax.swing.JButton();
        jBGrau1 = new javax.swing.JButton();
        jLOrange1 = new javax.swing.JLabel();
        jLBraun1 = new javax.swing.JLabel();
        jLGruen1 = new javax.swing.JLabel();
        jLGelb1 = new javax.swing.JLabel();
        jLBlau1 = new javax.swing.JLabel();
        jLRosa1 = new javax.swing.JLabel();
        jLGrau1 = new javax.swing.JLabel();
        jPanelML1 = new javax.swing.JPanel();
        jLSpieler2 = new javax.swing.JLabel();
        jLName2 = new javax.swing.JLabel();
        jLPunkte2 = new javax.swing.JLabel();
        jLPunktestand2 = new javax.swing.JLabel();
        jPGelb5 = new javax.swing.JPanel();
        jPBlau5 = new javax.swing.JPanel();
        jPPink5 = new javax.swing.JPanel();
        jBOrange2 = new javax.swing.JButton();
        jLOrange2 = new javax.swing.JLabel();
        jBBraun2 = new javax.swing.JButton();
        jLBraun2 = new javax.swing.JLabel();
        jBGruen2 = new javax.swing.JButton();
        jLGruen2 = new javax.swing.JLabel();
        jBGelb2 = new javax.swing.JButton();
        jLGelb2 = new javax.swing.JLabel();
        jBBlau2 = new javax.swing.JButton();
        jLBlau2 = new javax.swing.JLabel();
        jBRosa2 = new javax.swing.JButton();
        jLRosa2 = new javax.swing.JLabel();
        jBGrau2 = new javax.swing.JButton();
        jLGrau2 = new javax.swing.JLabel();
        jPanelOM2 = new javax.swing.JPanel();
        jLSpieler3 = new javax.swing.JLabel();
        jLName3 = new javax.swing.JLabel();
        jLPunkte3 = new javax.swing.JLabel();
        jLPunktestand3 = new javax.swing.JLabel();
        jBOrange3 = new javax.swing.JButton();
        jBBraun3 = new javax.swing.JButton();
        jBGruen3 = new javax.swing.JButton();
        jBGelb3 = new javax.swing.JButton();
        jBBlau3 = new javax.swing.JButton();
        jBRosa3 = new javax.swing.JButton();
        jBGrau3 = new javax.swing.JButton();
        jLOrange3 = new javax.swing.JLabel();
        jLBraun3 = new javax.swing.JLabel();
        jLGruen3 = new javax.swing.JLabel();
        jLGelb3 = new javax.swing.JLabel();
        jLBlau3 = new javax.swing.JLabel();
        jLRosa3 = new javax.swing.JLabel();
        jLGrau3 = new javax.swing.JLabel();
        jPanelML = new javax.swing.JPanel();
        jLSpieler4 = new javax.swing.JLabel();
        jLName4 = new javax.swing.JLabel();
        jLPunkte4 = new javax.swing.JLabel();
        jLPunktestand4 = new javax.swing.JLabel();
        jPGelb4 = new javax.swing.JPanel();
        jPBlau4 = new javax.swing.JPanel();
        jPPink4 = new javax.swing.JPanel();
        jBOrange4 = new javax.swing.JButton();
        jLOrange4 = new javax.swing.JLabel();
        jBBraun4 = new javax.swing.JButton();
        jLBraun4 = new javax.swing.JLabel();
        jBGruen4 = new javax.swing.JButton();
        jLGruen4 = new javax.swing.JLabel();
        jBGelb4 = new javax.swing.JButton();
        jLGelb4 = new javax.swing.JLabel();
        jLBlau4 = new javax.swing.JLabel();
        jBBlau4 = new javax.swing.JButton();
        jBRosa4 = new javax.swing.JButton();
        jLRosa4 = new javax.swing.JLabel();
        jBGrau4 = new javax.swing.JButton();
        jLGrau4 = new javax.swing.JLabel();
        jPanelMM = new javax.swing.JPanel();
        jBZeigStapelKarte = new javax.swing.JButton();
        jBGetR1 = new javax.swing.JButton();
        jBGetR2 = new javax.swing.JButton();
        jBGetR3 = new javax.swing.JButton();
        jBGetR4 = new javax.swing.JButton();
        jB11 = new javax.swing.JButton();
        jB12 = new javax.swing.JButton();
        jB13 = new javax.swing.JButton();
        jB21 = new javax.swing.JButton();
        jB22 = new javax.swing.JButton();
        jB23 = new javax.swing.JButton();
        jB31 = new javax.swing.JButton();
        jB32 = new javax.swing.JButton();
        jB33 = new javax.swing.JButton();
        jB41 = new javax.swing.JButton();
        jB42 = new javax.swing.JButton();
        jB43 = new javax.swing.JButton();
        jBStapelKarteGezeigt = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu2 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(0, 0, 0));
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

        jPanelOM1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLSpieler1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLSpieler1.setText("Spieler 1");

        jLName1.setText("spielername");

        jLPunkte1.setText("Punkte");

        jLPunktestand1.setText("0");

        jBOrange1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/orange.png"))); // NOI18N

        jBBraun1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/braun.png"))); // NOI18N

        jBGruen1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/gruen.png"))); // NOI18N
        jBGruen1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBGruen1ActionPerformed(evt);
            }
        });

        jBGelb1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/gelb.png"))); // NOI18N

        jBBlau1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/blau.png"))); // NOI18N

        jBRosa1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/rosa.png"))); // NOI18N

        jBGrau1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/grau.png"))); // NOI18N

        jLOrange1.setText("0");

        jLBraun1.setText("0");

        jLGruen1.setText("0");

        jLGelb1.setText("0");

        jLBlau1.setText("0");

        jLRosa1.setText("0");

        jLGrau1.setText("0");

        javax.swing.GroupLayout jPanelOM1Layout = new javax.swing.GroupLayout(jPanelOM1);
        jPanelOM1.setLayout(jPanelOM1Layout);
        jPanelOM1Layout.setHorizontalGroup(
            jPanelOM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelOM1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelOM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLSpieler1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLName1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLPunkte1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLPunktestand1, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBOrange1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLOrange1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBBraun1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLBraun1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBGruen1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLGruen1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBGelb1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLGelb1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBBlau1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLBlau1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBRosa1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLRosa1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBGrau1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLGrau1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelOM1Layout.setVerticalGroup(
            jPanelOM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelOM1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelOM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanelOM1Layout.createSequentialGroup()
                        .addComponent(jLSpieler1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLName1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLPunkte1, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jBBraun1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBOrange1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBGruen1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBGelb1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBBlau1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBRosa1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBGrau1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLPunktestand1)
                    .addComponent(jLOrange1)
                    .addComponent(jLBraun1)
                    .addComponent(jLGruen1)
                    .addComponent(jLGelb1)
                    .addComponent(jLBlau1)
                    .addComponent(jLRosa1)
                    .addComponent(jLGrau1))
                .addGap(21, 21, 21))
        );

        jPanelML1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLSpieler2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLSpieler2.setText("Spieler 2");

        jLName2.setText("Name2");

        jLPunkte2.setText("Punkte");

        jLPunktestand2.setText("0");

        jPGelb5.setBackground(new java.awt.Color(255, 255, 0));

        javax.swing.GroupLayout jPGelb5Layout = new javax.swing.GroupLayout(jPGelb5);
        jPGelb5.setLayout(jPGelb5Layout);
        jPGelb5Layout.setHorizontalGroup(
            jPGelb5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        jPGelb5Layout.setVerticalGroup(
            jPGelb5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 33, Short.MAX_VALUE)
        );

        jPBlau5.setBackground(new java.awt.Color(51, 51, 255));

        javax.swing.GroupLayout jPBlau5Layout = new javax.swing.GroupLayout(jPBlau5);
        jPBlau5.setLayout(jPBlau5Layout);
        jPBlau5Layout.setHorizontalGroup(
            jPBlau5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        jPBlau5Layout.setVerticalGroup(
            jPBlau5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 32, Short.MAX_VALUE)
        );

        jPPink5.setBackground(new java.awt.Color(255, 0, 255));

        javax.swing.GroupLayout jPPink5Layout = new javax.swing.GroupLayout(jPPink5);
        jPPink5.setLayout(jPPink5Layout);
        jPPink5Layout.setHorizontalGroup(
            jPPink5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        jPPink5Layout.setVerticalGroup(
            jPPink5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 31, Short.MAX_VALUE)
        );

        jBOrange2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/orange.png"))); // NOI18N

        jLOrange2.setText("0");

        jBBraun2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/braun.png"))); // NOI18N

        jLBraun2.setText("0");

        jBGruen2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/gruen.png"))); // NOI18N
        jBGruen2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBGruen2ActionPerformed(evt);
            }
        });

        jLGruen2.setText("0");

        jBGelb2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/gelb.png"))); // NOI18N

        jLGelb2.setText("0");

        jBBlau2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/blau.png"))); // NOI18N

        jLBlau2.setText("0");

        jBRosa2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/rosa.png"))); // NOI18N

        jLRosa2.setText("0");

        jBGrau2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/grau.png"))); // NOI18N

        jLGrau2.setText("0");

        javax.swing.GroupLayout jPanelML1Layout = new javax.swing.GroupLayout(jPanelML1);
        jPanelML1.setLayout(jPanelML1Layout);
        jPanelML1Layout.setHorizontalGroup(
            jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelML1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelML1Layout.createSequentialGroup()
                        .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLSpieler2, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)
                            .addComponent(jLPunkte2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLName2, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLPunktestand2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanelML1Layout.createSequentialGroup()
                        .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelML1Layout.createSequentialGroup()
                                .addComponent(jLOrange2, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLBraun2, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLGruen2, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLGelb2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelML1Layout.createSequentialGroup()
                                .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanelML1Layout.createSequentialGroup()
                                        .addComponent(jBBlau2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jBRosa2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanelML1Layout.createSequentialGroup()
                                        .addComponent(jLBlau2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLRosa2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jBGrau2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLGrau2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jPPink5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPBlau5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPGelb5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(jPanelML1Layout.createSequentialGroup()
                        .addComponent(jBOrange2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jBBraun2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jBGruen2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jBGelb2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelML1Layout.setVerticalGroup(
            jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelML1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jBGelb2)
                    .addGroup(jPanelML1Layout.createSequentialGroup()
                        .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLSpieler2)
                            .addComponent(jLName2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelML1Layout.createSequentialGroup()
                                .addComponent(jLPunkte2)
                                .addGap(11, 11, 11))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelML1Layout.createSequentialGroup()
                                .addComponent(jLPunktestand2)
                                .addGap(18, 18, 18)))
                        .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jBOrange2, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jBBraun2, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jBGruen2, javax.swing.GroupLayout.Alignment.TRAILING))))
                .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelML1Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jPGelb5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, 0)
                        .addComponent(jPBlau5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPPink5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(49, 49, 49))
                    .addGroup(jPanelML1Layout.createSequentialGroup()
                        .addGap(2, 2, 2)
                        .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLOrange2)
                            .addComponent(jLGelb2)
                            .addComponent(jLGruen2)
                            .addComponent(jLBraun2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jBGrau2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jBRosa2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jBBlau2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelML1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLBlau2)
                            .addComponent(jLRosa2)
                            .addComponent(jLGrau2))
                        .addGap(58, 58, 58))))
        );

        jPanelOM2.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLSpieler3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLSpieler3.setText("Spieler 3");

        jLName3.setText("Name3");

        jLPunkte3.setText("Punkte");

        jLPunktestand3.setText("0");

        jBOrange3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/orange.png"))); // NOI18N

        jBBraun3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/braun.png"))); // NOI18N

        jBGruen3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/gruen.png"))); // NOI18N

        jBGelb3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/gelb.png"))); // NOI18N

        jBBlau3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/blau.png"))); // NOI18N

        jBRosa3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/rosa.png"))); // NOI18N

        jBGrau3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/grau.png"))); // NOI18N

        jLOrange3.setText("0");

        jLBraun3.setText("0");

        jLGruen3.setText("0");

        jLGelb3.setText("0");

        jLBlau3.setText("0");

        jLRosa3.setText("0");

        jLGrau3.setText("0");

        javax.swing.GroupLayout jPanelOM2Layout = new javax.swing.GroupLayout(jPanelOM2);
        jPanelOM2.setLayout(jPanelOM2Layout);
        jPanelOM2Layout.setHorizontalGroup(
            jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelOM2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLSpieler3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLName3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLPunkte3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLPunktestand3, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBOrange3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLOrange3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBBraun3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLBraun3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBGruen3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLGruen3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBGelb3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLGelb3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBBlau3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLBlau3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBRosa3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLRosa3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBGrau3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLGrau3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelOM2Layout.setVerticalGroup(
            jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelOM2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelOM2Layout.createSequentialGroup()
                        .addComponent(jLSpieler3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLName3, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLPunkte3, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jBGrau3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBRosa3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBBlau3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBGelb3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBGruen3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBBraun3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBOrange3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLBraun3)
                        .addComponent(jLGruen3)
                        .addComponent(jLGelb3)
                        .addComponent(jLBlau3)
                        .addComponent(jLRosa3)
                        .addComponent(jLGrau3))
                    .addGroup(jPanelOM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLPunktestand3)
                        .addComponent(jLOrange3)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanelML.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jLSpieler4.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLSpieler4.setText("Spieler 4");

        jLName4.setText("Name4");

        jLPunkte4.setText("Punkte");

        jLPunktestand4.setText("0");

        jPGelb4.setBackground(new java.awt.Color(255, 255, 0));

        javax.swing.GroupLayout jPGelb4Layout = new javax.swing.GroupLayout(jPGelb4);
        jPGelb4.setLayout(jPGelb4Layout);
        jPGelb4Layout.setHorizontalGroup(
            jPGelb4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        jPGelb4Layout.setVerticalGroup(
            jPGelb4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 33, Short.MAX_VALUE)
        );

        jPBlau4.setBackground(new java.awt.Color(51, 51, 255));

        javax.swing.GroupLayout jPBlau4Layout = new javax.swing.GroupLayout(jPBlau4);
        jPBlau4.setLayout(jPBlau4Layout);
        jPBlau4Layout.setHorizontalGroup(
            jPBlau4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        jPBlau4Layout.setVerticalGroup(
            jPBlau4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 32, Short.MAX_VALUE)
        );

        jPPink4.setBackground(new java.awt.Color(255, 0, 255));

        javax.swing.GroupLayout jPPink4Layout = new javax.swing.GroupLayout(jPPink4);
        jPPink4.setLayout(jPPink4Layout);
        jPPink4Layout.setHorizontalGroup(
            jPPink4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        jPPink4Layout.setVerticalGroup(
            jPPink4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 31, Short.MAX_VALUE)
        );

        jBOrange4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/orange.png"))); // NOI18N

        jLOrange4.setText("0");

        jBBraun4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/braun.png"))); // NOI18N

        jLBraun4.setText("0");

        jBGruen4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/gruen.png"))); // NOI18N
        jBGruen4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBGruen4ActionPerformed(evt);
            }
        });

        jLGruen4.setText("0");

        jBGelb4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/gelb.png"))); // NOI18N

        jLGelb4.setText("0");

        jLBlau4.setText("0");

        jBBlau4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/blau.png"))); // NOI18N

        jBRosa4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/rosa.png"))); // NOI18N

        jLRosa4.setText("0");

        jBGrau4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/grau.png"))); // NOI18N

        jLGrau4.setText("0");

        javax.swing.GroupLayout jPanelMLLayout = new javax.swing.GroupLayout(jPanelML);
        jPanelML.setLayout(jPanelMLLayout);
        jPanelMLLayout.setHorizontalGroup(
            jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMLLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelMLLayout.createSequentialGroup()
                        .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLSpieler4, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)
                            .addComponent(jLPunkte4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLName4, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLPunktestand4, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanelMLLayout.createSequentialGroup()
                        .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelMLLayout.createSequentialGroup()
                                .addComponent(jLOrange4, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLBraun4, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLGruen4, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLGelb4, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelMLLayout.createSequentialGroup()
                                .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanelMLLayout.createSequentialGroup()
                                        .addComponent(jBBlau4, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jBRosa4, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanelMLLayout.createSequentialGroup()
                                        .addComponent(jLBlau4, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLRosa4, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jBGrau4, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLGrau4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jPPink4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPBlau4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPGelb4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(jPanelMLLayout.createSequentialGroup()
                        .addComponent(jBOrange4, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jBBraun4, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jBGruen4, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jBGelb4, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelMLLayout.setVerticalGroup(
            jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMLLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jBGelb4)
                    .addGroup(jPanelMLLayout.createSequentialGroup()
                        .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLSpieler4)
                            .addComponent(jLName4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelMLLayout.createSequentialGroup()
                                .addComponent(jLPunkte4)
                                .addGap(11, 11, 11))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelMLLayout.createSequentialGroup()
                                .addComponent(jLPunktestand4)
                                .addGap(18, 18, 18)))
                        .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jBOrange4, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jBBraun4, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jBGruen4, javax.swing.GroupLayout.Alignment.TRAILING))))
                .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelMLLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jPGelb4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, 0)
                        .addComponent(jPBlau4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPPink4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(49, 49, 49))
                    .addGroup(jPanelMLLayout.createSequentialGroup()
                        .addGap(2, 2, 2)
                        .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLOrange4)
                            .addComponent(jLGelb4)
                            .addComponent(jLGruen4)
                            .addComponent(jLBraun4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jBGrau4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jBRosa4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jBBlau4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLBlau4)
                            .addComponent(jLRosa4)
                            .addComponent(jLGrau4))
                        .addGap(58, 58, 58))))
        );

        jPanelMM.setBackground(new java.awt.Color(255, 255, 255));
        jPanelMM.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelMM.setToolTipText("");
        jPanelMM.setInheritsPopupMenu(true);

        jBZeigStapelKarte.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/deck.png"))); // NOI18N
        jBZeigStapelKarte.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBZeigStapelKarteActionPerformed(evt);
            }
        });

        jBGetR1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/reihe.png"))); // NOI18N
        jBGetR1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBGetR1ActionPerformed(evt);
            }
        });

        jBGetR2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/reihe.png"))); // NOI18N
        jBGetR2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBGetR2ActionPerformed(evt);
            }
        });

        jBGetR3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/reihe.png"))); // NOI18N
        jBGetR3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBGetR3ActionPerformed(evt);
            }
        });

        jBGetR4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/reihe.png"))); // NOI18N
        jBGetR4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBGetR4ActionPerformed(evt);
            }
        });

        jB11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB11ActionPerformed(evt);
            }
        });

        jB12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB12ActionPerformed(evt);
            }
        });

        jB13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB13ActionPerformed(evt);
            }
        });

        jB21.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB21ActionPerformed(evt);
            }
        });

        jB22.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB22ActionPerformed(evt);
            }
        });

        jB23.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB23ActionPerformed(evt);
            }
        });

        jB31.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB31ActionPerformed(evt);
            }
        });

        jB32.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB32ActionPerformed(evt);
            }
        });

        jB33.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB33ActionPerformed(evt);
            }
        });

        jB41.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB41ActionPerformed(evt);
            }
        });

        jB42.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB42ActionPerformed(evt);
            }
        });

        jB43.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jB43ActionPerformed(evt);
            }
        });

        jBStapelKarteGezeigt.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/grau.png"))); // NOI18N

        javax.swing.GroupLayout jPanelMMLayout = new javax.swing.GroupLayout(jPanelMM);
        jPanelMM.setLayout(jPanelMMLayout);
        jPanelMMLayout.setHorizontalGroup(
            jPanelMMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMMLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelMMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jBZeigStapelKarte, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jBStapelKarteGezeigt, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(63, 63, 63)
                .addGroup(jPanelMMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jBGetR4, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jBGetR3, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanelMMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jBGetR1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jBGetR2, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelMMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelMMLayout.createSequentialGroup()
                        .addComponent(jB41, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jB42, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jB43, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelMMLayout.createSequentialGroup()
                        .addComponent(jB11, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jB12, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jB13, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelMMLayout.createSequentialGroup()
                        .addGroup(jPanelMMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(jPanelMMLayout.createSequentialGroup()
                                .addComponent(jB31, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jB32, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelMMLayout.createSequentialGroup()
                                .addComponent(jB21, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jB22, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelMMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jB23, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jB33, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(150, Short.MAX_VALUE))
        );
        jPanelMMLayout.setVerticalGroup(
            jPanelMMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMMLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelMMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBZeigStapelKarte, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBGetR1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jB11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jB12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jB13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelMMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBGetR2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jB21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jB22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jB23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBStapelKarteGezeigt, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelMMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelMMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jBGetR3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jB31, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(jB33, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jB32, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelMMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jB42, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jBGetR4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jB41, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jB43, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(30, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPContentLayout = new javax.swing.GroupLayout(jPContent);
        jPContent.setLayout(jPContentLayout);
        jPContentLayout.setHorizontalGroup(
            jPContentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPContentLayout.createSequentialGroup()
                .addGap(0, 10, Short.MAX_VALUE)
                .addGroup(jPContentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanelOM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelOM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPContentLayout.createSequentialGroup()
                        .addComponent(jPanelML, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanelMM, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelML1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(22, 22, 22))
        );
        jPContentLayout.setVerticalGroup(
            jPContentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPContentLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelOM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPContentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelML1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanelML, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanelMM, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelOM2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(22, 22, 22))
        );

        jMenu1.setText("File");
        jMenuBar1.add(jMenu1);

        jMenu2.setText("Edit");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPContent, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPContent, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jBGruen2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBGruen2ActionPerformed
        //No Event
    }//GEN-LAST:event_jBGruen2ActionPerformed

    private void jBGruen4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBGruen4ActionPerformed
        //No Event
    }//GEN-LAST:event_jBGruen4ActionPerformed

    private void jBZeigStapelKarteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBZeigStapelKarteActionPerformed
        //Stapel Karte Zeigen 

    }//GEN-LAST:event_jBZeigStapelKarteActionPerformed

    private void jBGruen1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBGruen1ActionPerformed
        //No Event
    }//GEN-LAST:event_jBGruen1ActionPerformed

    private void jBGetR1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBGetR1ActionPerformed
        //Get Row 1
        //Wenn zuvor eine Karte vom Stapel genommen wurde, wird die Karte auf den Stapel gelegt
        if(Spiel.stapelkarteGezogen() == true){
            Spiel.karteAufReiheLegen(null, 1);
  
        //Wurd zuvor keine Karte vom Staple genommen, wird die Reihe aufgenommen
        //und die Karten dem Spieler zugeteilt
        } else {
            Spiel.reiheAufnehmen(1);
        }
    }//GEN-LAST:event_jBGetR1ActionPerformed

    private void jBGetR2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBGetR2ActionPerformed
        //Get Row 2
        //Wenn zuvor eine Karte vom Stapel genommen wurde, wird die Karte auf den Stapel gelegt
        if(Spiel.stapelkarteGezogen() == true){
            Spiel.karteAufReiheLegen(null, 2);
  
        //Wurd zuvor keine Karte vom Staple genommen, wird die Reihe aufgenommen
        //und die Karten dem Spieler zugeteilt
        } else {
            Spiel.reiheAufnehmen(2);
        }
    }//GEN-LAST:event_jBGetR2ActionPerformed

    private void jBGetR3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBGetR3ActionPerformed
        //Get Row 3
        //Wenn zuvor eine Karte vom Stapel genommen wurde, wird die Karte auf den Stapel gelegt
        if(Spiel.stapelkarteGezogen() == true){
            Spiel.karteAufReiheLegen(null, 3);
  
        //Wurd zuvor keine Karte vom Staple genommen, wird die Reihe aufgenommen
        //und die Karten dem Spieler zugeteilt
        } else {
            Spiel.reiheAufnehmen(3);
        }
    }//GEN-LAST:event_jBGetR3ActionPerformed

    private void jBGetR4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBGetR4ActionPerformed
        //Get Row 4
        //Wenn zuvor eine Karte vom Stapel genommen wurde, wird die Karte auf den Stapel gelegt
        if(Spiel.stapelkarteGezogen() == true){
            Spiel.karteAufReiheLegen(null, 4); 
  
        //Wurd zuvor keine Karte vom Staple genommen, wird die Reihe aufgenommen
        //und die Karten dem Spieler zugeteilt
        } else {
            Spiel.reiheAufnehmen(4);
        } 
    }//GEN-LAST:event_jBGetR4ActionPerformed

    private void jB11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB11ActionPerformed
        //Reihe 1 Karte 1

    }//GEN-LAST:event_jB11ActionPerformed

    private void jB12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB12ActionPerformed
        //Reihe 1 Karte 2
    }//GEN-LAST:event_jB12ActionPerformed

    private void jB13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB13ActionPerformed
        //Reihe 1 Karte 3
    }//GEN-LAST:event_jB13ActionPerformed

    private void jB21ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB21ActionPerformed
        //Reihe 2 Karte 1
    }//GEN-LAST:event_jB21ActionPerformed

    private void jB22ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB22ActionPerformed
        //Reihe 2 Karte 2
    }//GEN-LAST:event_jB22ActionPerformed

    private void jB23ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB23ActionPerformed
        //Reihe 2 Karte 3
    }//GEN-LAST:event_jB23ActionPerformed

    private void jB31ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB31ActionPerformed
        //Reihe 3 Karte 1
    }//GEN-LAST:event_jB31ActionPerformed

    private void jB32ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB32ActionPerformed
        //Reihe 3 Karte 2
    }//GEN-LAST:event_jB32ActionPerformed

    private void jB33ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB33ActionPerformed
        //Reihe 3 Karte 3
    }//GEN-LAST:event_jB33ActionPerformed

    private void jB41ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB41ActionPerformed
        //Reihe 4 Karte 1
    }//GEN-LAST:event_jB41ActionPerformed

    private void jB42ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB42ActionPerformed
        //Reihe 4 Karte 2
    }//GEN-LAST:event_jB42ActionPerformed

    private void jB43ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jB43ActionPerformed
        //Reihe 4 Karte 3
    }//GEN-LAST:event_jB43ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        //catches fangen Fehler auf, die im try block passieren können. So wird eine Fehlermeldung ausgegeben, anstatt das das Programm einfach abstürzt.. ;)
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(GUImain.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(GUImain.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(GUImain.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(GUImain.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new GUImain().setVisible(true);
            }
        });
    }

    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jB11;
    private javax.swing.JButton jB12;
    private javax.swing.JButton jB13;
    private javax.swing.JButton jB21;
    private javax.swing.JButton jB22;
    private javax.swing.JButton jB23;
    private javax.swing.JButton jB31;
    private javax.swing.JButton jB32;
    private javax.swing.JButton jB33;
    private javax.swing.JButton jB41;
    private javax.swing.JButton jB42;
    private javax.swing.JButton jB43;
    private javax.swing.JButton jBBlau1;
    private javax.swing.JButton jBBlau2;
    private javax.swing.JButton jBBlau3;
    private javax.swing.JButton jBBlau4;
    private javax.swing.JButton jBBraun1;
    private javax.swing.JButton jBBraun2;
    private javax.swing.JButton jBBraun3;
    private javax.swing.JButton jBBraun4;
    private javax.swing.JButton jBGelb1;
    private javax.swing.JButton jBGelb2;
    private javax.swing.JButton jBGelb3;
    private javax.swing.JButton jBGelb4;
    private javax.swing.JButton jBGetR1;
    private javax.swing.JButton jBGetR2;
    private javax.swing.JButton jBGetR3;
    private javax.swing.JButton jBGetR4;
    private javax.swing.JButton jBGrau1;
    private javax.swing.JButton jBGrau2;
    private javax.swing.JButton jBGrau3;
    private javax.swing.JButton jBGrau4;
    private javax.swing.JButton jBGruen1;
    private javax.swing.JButton jBGruen2;
    private javax.swing.JButton jBGruen3;
    private javax.swing.JButton jBGruen4;
    private javax.swing.JButton jBOrange1;
    private javax.swing.JButton jBOrange2;
    private javax.swing.JButton jBOrange3;
    private javax.swing.JButton jBOrange4;
    private javax.swing.JButton jBRosa1;
    private javax.swing.JButton jBRosa2;
    private javax.swing.JButton jBRosa3;
    private javax.swing.JButton jBRosa4;
    private javax.swing.JButton jBStapelKarteGezeigt;
    private javax.swing.JButton jBZeigStapelKarte;
    private javax.swing.JLabel jLBlau1;
    private javax.swing.JLabel jLBlau2;
    private javax.swing.JLabel jLBlau3;
    private javax.swing.JLabel jLBlau4;
    private javax.swing.JLabel jLBraun1;
    private javax.swing.JLabel jLBraun2;
    private javax.swing.JLabel jLBraun3;
    private javax.swing.JLabel jLBraun4;
    private javax.swing.JLabel jLGelb1;
    private javax.swing.JLabel jLGelb2;
    private javax.swing.JLabel jLGelb3;
    private javax.swing.JLabel jLGelb4;
    private javax.swing.JLabel jLGrau1;
    private javax.swing.JLabel jLGrau2;
    private javax.swing.JLabel jLGrau3;
    private javax.swing.JLabel jLGrau4;
    private javax.swing.JLabel jLGruen1;
    private javax.swing.JLabel jLGruen2;
    private javax.swing.JLabel jLGruen3;
    private javax.swing.JLabel jLGruen4;
    public javax.swing.JLabel jLName1;
    private javax.swing.JLabel jLName2;
    private javax.swing.JLabel jLName3;
    private javax.swing.JLabel jLName4;
    private javax.swing.JLabel jLOrange1;
    private javax.swing.JLabel jLOrange2;
    private javax.swing.JLabel jLOrange3;
    private javax.swing.JLabel jLOrange4;
    private javax.swing.JLabel jLPunkte1;
    private javax.swing.JLabel jLPunkte2;
    private javax.swing.JLabel jLPunkte3;
    private javax.swing.JLabel jLPunkte4;
    private javax.swing.JLabel jLPunktestand1;
    private javax.swing.JLabel jLPunktestand2;
    private javax.swing.JLabel jLPunktestand3;
    private javax.swing.JLabel jLPunktestand4;
    private javax.swing.JLabel jLRosa1;
    private javax.swing.JLabel jLRosa2;
    private javax.swing.JLabel jLRosa3;
    private javax.swing.JLabel jLRosa4;
    private javax.swing.JLabel jLSpieler1;
    private javax.swing.JLabel jLSpieler2;
    private javax.swing.JLabel jLSpieler3;
    private javax.swing.JLabel jLSpieler4;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPBlau4;
    private javax.swing.JPanel jPBlau5;
    private javax.swing.JPanel jPContent;
    private javax.swing.JPanel jPGelb4;
    private javax.swing.JPanel jPGelb5;
    private javax.swing.JPanel jPPink4;
    private javax.swing.JPanel jPPink5;
    private javax.swing.JPanel jPanelML;
    private javax.swing.JPanel jPanelML1;
    private javax.swing.JPanel jPanelMM;
    private javax.swing.JPanel jPanelOM1;
    private javax.swing.JPanel jPanelOM2;
    // End of variables declaration//GEN-END:variables


private void assignButtons() {
    //Buttons 4x3
    
    
    
    buttons[0][0] = jB11;
    buttons[0][1] = jB12;
    buttons[0][2] = jB13;
    buttons[1][0] = jB21;
    buttons[1][1] = jB22;
    buttons[1][2] = jB23;
    buttons[2][0] = jB31;
    buttons[2][1] = jB32;
    buttons[2][2] = jB33;
    buttons[3][0] = jB41;
    buttons[3][1] = jB42;
    buttons[3][2] = jB43;  
       
    //Buttons Kartenstapel Back & Front
    buttons[3][0] = jBStapelKarteGezeigt;
    buttons[3][1] = jBZeigStapelKarte;

}

private void assignLabels() {
    //Labels Spieler 1
    
    jLOrange1.setText(Integer.toString(Spieler[1].getAnzahlOrange()));
    jLBraun1.setText(Integer.toString(Spieler[1].getAnzahlBlau()));
    jLGruen1.setText(Integer.toString(Spieler[1].getAnzahlGruen()));
    jLGelb1.setText(Integer.toString(Spieler[1].getAnzahlGelb()));
    jLBlau1.setText(Integer.toString(Spieler[1].getAnzahlBlau()));
    jLRosa1.setText(Integer.toString(Spieler[1].getAnzahlMagenta()));
    jLGrau1.setText(Integer.toString(Spieler[1].getAnzahlGrau()));
    
    jLName1.setText(Spieler[1].getName());
    jLPunktestand1.setText(Integer.toString(Spieler[1].punkteZählen()));
    
    
//    labels[0][0] = jLOrange1;
//    labels[0][1] = jLBraun1;   
//    labels[0][2] = jLGruen1;
//    labels[0][3] = jLGelb1;
//    labels[0][4] = jLBlau1;
//    labels[0][5] = jLRosa1;
//    labels[0][6] = jLGrau1;
// 
//    labels[0][7] = jLName1;
//    labels[0][8] = jLPunktestand1;
    
    //Labels Spieler 2
    
    jLOrange2.setText(Integer.toString(Spieler[2].getAnzahlOrange()));
    jLBraun2.setText(Integer.toString(Spieler[2].getAnzahlBlau()));
    jLGruen2.setText(Integer.toString(Spieler[2].getAnzahlGruen()));
    jLGelb2.setText(Integer.toString(Spieler[2].getAnzahlGelb()));
    jLBlau2.setText(Integer.toString(Spieler[2].getAnzahlBlau()));
    jLRosa2.setText(Integer.toString(Spieler[2].getAnzahlMagenta()));
    jLGrau2.setText(Integer.toString(Spieler[2].getAnzahlGrau()));
    
    jLName2.setText(Spieler[2].getName());
    jLPunktestand2.setText(Integer.toString(Spieler[2].punkteZählen()));
    
//    labels[1][0] = jLOrange2;
//    labels[1][1] = jLBraun2;
//    labels[1][2] = jLGruen2;
//    labels[1][3] = jLGelb2;
//    labels[1][4] = jLBlau2;
//    labels[1][5] = jLRosa2;
//    labels[1][6] = jLGrau2;
//
//    labels[1][7] = jLName2;
//    labels[1][8] = jLPunktestand2;

    //Labels Spieler 3
    
    jLOrange3.setText(Integer.toString(Spieler[3].getAnzahlOrange()));
    jLBraun3.setText(Integer.toString(Spieler[3].getAnzahlBlau()));
    jLGruen3.setText(Integer.toString(Spieler[3].getAnzahlGruen()));
    jLGelb3.setText(Integer.toString(Spieler[3].getAnzahlGelb()));
    jLBlau3.setText(Integer.toString(Spieler[3].getAnzahlBlau()));
    jLRosa3.setText(Integer.toString(Spieler[3].getAnzahlMagenta()));
    jLGrau3.setText(Integer.toString(Spieler[3].getAnzahlGrau()));
    
    jLName3.setText(Spieler[3].getName());
    jLPunktestand3.setText(Integer.toString(Spieler[3].punkteZählen()));
    
//    labels[2][0] = jLOrange3;
//    labels[2][1] = jLBraun3;
//    labels[2][2] = jLGruen3;
//    labels[2][3] = jLGelb3;
//    labels[2][4] = jLBlau3;
//    labels[2][5] = jLRosa3;
//    labels[2][6] = jLGrau3;
//
//    labels[2][7] = jLName3;
//    labels[2][8] = jLPunktestand3;

    //Labels Spieler 4
    
    jLOrange4.setText(Integer.toString(Spieler[4].getAnzahlOrange()));
    jLBraun4.setText(Integer.toString(Spieler[4].getAnzahlBlau()));
    jLGruen4.setText(Integer.toString(Spieler[4].getAnzahlGruen()));
    jLGelb4.setText(Integer.toString(Spieler[4].getAnzahlGelb()));
    jLBlau4.setText(Integer.toString(Spieler[4].getAnzahlBlau()));
    jLRosa4.setText(Integer.toString(Spieler[4].getAnzahlMagenta()));
    jLGrau4.setText(Integer.toString(Spieler[4].getAnzahlGrau()));
    
    jLName4.setText(Spieler[4].getName());
    jLPunktestand4.setText(Integer.toString(Spieler[4].punkteZählen()));
    
//    labels[3][0] = jLOrange4;
//    labels[3][1] = jLBraun4;
//    labels[3][2] = jLGruen4;
//    labels[3][3] = jLGelb4;
//    labels[3][4] = jLBlau4;
//    labels[3][5] = jLRosa4;
//    labels[3][6] = jLGrau4;
//
//    labels[3][7] = jLName4;
//    labels[3][8] = jLPunktestand4;

    }

}